﻿using NicoView.ViewModel;
using NicoView.ViewModel.Message;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NicoView.View.Behaviors
{
    public class ShowUserInfoCommentsAction:ShowWindowAction<NicoViewUserInfoWindow>
    {



        protected override void OnInvoke(object msg)
        {
            var message = (NicoViewShowUserInfoCommentsMessage)msg;
            this.Target.UserInfoControl.DataContext = new NicoViewUserInfoViewModel(message.User, message.Comments);
        }
    }
}
